import getStatList from './data/getStatList.js'

export default [
  // 答卷列表
  {
    url: '/api/stat/:questionId',
    method: 'get',
    response: () => ({
      errno: 0,
      data: {
        list: getStatList(),
        total: 100,
      },
    }),
  },
  // 获取单个组件的统计数据汇总
  {
    url: '/api/stat/:questionId/:componentId',
    method: 'get',
    response: () => ({
      errno: 0,
      data: {
        stat: [
          { name: '选项 1', count: 20 },
          { name: '选项 2', count: 30 },
          { name: '选项 3', count: 50 },
        ],
      },
    }),
  },
]
